import request from '@/utils/request'
let baseUrl = process.env.NODE_ENV === 'production' ? 'api/galaxy/std' : '/std'
export const getSources = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/common/sources',
    method: 'post',
    data
  })
export const getSourcesIntID = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/source/parent-sources',
    method: 'post',
    data
  })
export const getProjects = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/common/projects',
    method: 'post',
    data
  })
export const getThirdTypes = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/common/third-types',
    method: 'post',
    data
  })
export const getCategoryAll = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/faq-category/all',
    method: 'post',
    data
  })
